import { Rule, RuleType } from "@midwayjs/validate";

export class MQTT_OTA_DTO {
  // taskId
  @Rule(RuleType.string().allow(null))
  taskId: string;

  // firmwareid
  @Rule(RuleType.string().allow(null))
  firmwareid: string;

  //  localPath
  @Rule(RuleType.string().allow(null))
  localPath: string;

  @Rule(RuleType.string().allow(null))
  force: string | number;

  @Rule(RuleType.string().allow(null))
  gw_mac: string;

  @Rule(RuleType.string().allow(null))
  wb_mac: string;

  @Rule(RuleType.string().allow(null))
  gw_full: string | number;

  @Rule(RuleType.string().allow(null))
  wb_full: string | number;

  @Rule(RuleType.string().allow(null))
  full: string | number;
}
